package com.he.DesignPatterns.observer;

import lombok.Data;

import javax.annotation.security.DenyAll;

/**
 * @description: 具体观察者类
 * @Author: HCL
 * @Date: 2024/9/4 10:37
 */
@Data
public class WeiXinUser implements Observer {

    private String name;

    public WeiXinUser(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name + "-" + message);
    }
}
